new MVC.Test.Controller('files',{
	test_mouseover: function(){
		var params = this.FileMouseover(2);
		this.assert_equal('#e8eef7', RGB2HEX(params.element.style.backgroundColor) );
	},
	test_mouseout: function(){
		var params = this.FileMouseout(2);
		this.assert_equal("", params.element.style.backgroundColor)
	},
	test_click: function(){
		var params = this.FileClick(2);
		this.assert_equal("#3167c5", RGB2HEX(params.element.style.backgroundColor));
		this.FileMouseover(2);
		this.assert_equal("#3167c5", RGB2HEX(params.element.style.backgroundColor));
		this.FileMouseout(2);
		
		this.FileClick(3);
		this.assert_equal("", params.element.style.backgroundColor);
	},
	test_contextmenu: function(){
		this.FileContextmenu(4);
		this.assert_equal('block', MVC.$E('menu').style.display);
		this.next()
	},
	check_shadow: function(){
		this.assert_equal('block', MVC.$E('menuShadow').style.display);
		this.FileClick(4);
	},
	test_open: function(){
		this.Dblclick( MVC.$E('/application.html') );
		this.next()
	},
	check_open: function(){
		this.assert_equal('/application.html', editAreaLoader.getCurrentFile("EDITAREA_TEXTAREA").id)
	},
	test_drag: function(){
		this.assert_equal(0, MVC.$E('/u_to_here2').next().childNodes.length)
		this.Drag(MVC.$E('/thanks.html'),{from: '/thanks.html', to: '/u_to_here2', duration: 2, callback: this.next_callback('done_dragging',1)  }  )
	},
	done_dragging : function(){
		this.assert_equal(1, MVC.$E('/u_to_here2').next().childNodes.length);
	}
});